Release 10.1A: OpenEdge Data Management:
SQL Reference
CREATE VIEW
Creates a view with the specified name on existing tables or views.
Syntax
owner_nameOwner of the created view.
( column_name, column_name,... )Specifies column names for the view. These names provide an alias for the columns selected by the query specification. If the column names are not specified, then the view is created with the same column names as the tables or views on which it is based.
WITH CHECK OPTIONChecks that the updated or inserted row satisfies the view definition. The row must be selectable using the view. The
WITHCHECKOPTIONclause is only allowed on an updatable view.Notes
Example
- A view is deletable if deleting rows from that view is allowed. For a view to be deletable, the view definition has to satisfy the following conditions:
- A view is updatable if updating rows from that view is allowed. For a view to be updatable, the view has to satisfy the following conditions:
- A view is insertable if inserting rows into that view is allowed. For a view to be insertable, the view has to satisfy the following conditions:
- The view is updatable (it satisfies all the conditions specified above for update ability).
- If the first
FROMclause contains a table reference, then allNOT NULLcolumns of the table are selected in the firstSELECTclause of the view definition.- If the first
FROMclause contains a view reference, then the view referred to is insertable.
Authorization
Must have
DBAprivilege,RESOURCEprivilege, orSELECTprivilege.Related statements
DROP VIEW
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |